home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / misc-part2 / 11409 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: Leiden.NL.net!sun4nl!xs4all!usenet
  2. From: jtv@xs4all.nl (Jeroen T. Vermeulen)
  3. Newsgroups: comp.sys.amiga.misc
  4. Subject: Re: Amigados - checking for a file
  5. Date: Sun, 7 Apr 96 02:21:00
  6. Organization: Leiden University, Mathematics & Computer Science, The Netherlands
  7. Message-ID: <19960407.7BDE4A0.2128@asd10-12.dial.xs4all.nl>
  8. References: <401.6670T240T431@nibelung.demon.co.uk>
  9. NNTP-Posting-Host: asd10-12.dial.xs4all.nl
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=iso-8859-1
  12. Content-Transfer-Encoding: 8bit
  13. X-NewsSoftware: GRn 2.1 Feb 19, 1994
  14.  
  15.  
  16. In article <401.6670T240T431@nibelung.demon.co.uk> barry.1@nibelung.demon.co.uk (Barry Shilliday) writes:
  17. > What would be the format to check the existence of a file in a script for dos?
  18. > I would have thought something like this:
  19. >
  20. > If EXISTS blah:filename
  21. >   dowhatever
  22. >   else
  23. >    dothatinstead
  24. >    endif
  25. > endif
  26. >
  27. > but this doesn't work.
  28.  
  29. You are using the correct syntax for the If statement, but there's one "endif"
  30. too many.
  31.  
  32.  
  33. >         Barry Shilliday  --  <barry@nibelung.demon.co.uk>
  34. >                A1200/030/50/8+2/170  -  KS 3.1
  35. >              Public PGP Key available on request.
  36.  
  37. --
  38. ============================================================================
  39. #  Jeroen T. Vermeulen   \"How are we doing kid?"/   Yes, we use Amigas.   #
  40. #---  jtv@xs4all.nl    ---\"Oh, same as always."/--         ...          --#
  41. #jvermeul@wi.leidenuniv.nl \ "That bad, huh?"  /  Got a problem with that? #
  42. Bill Gates' favourite game: Monopoly.   Favourite sport:  Monopolo.
  43.